﻿namespace OT.HikiSecureCenterApis.Service.Resources.Res
{
    public class ResAdd
    {
        #region 属性
        /// <summary>
        /// 批量添加成功的记录
        /// </summary>
        public List<Success> successes { get; set; }
        /// <summary>
        /// 批量添加失败的记录
        /// </summary>
        public List<Failure> failures { get; set; }
        #endregion
    }

    public class Success
    {
        /// <summary>
        /// 调用方指定Id
        /// </summary>
        public int clientId { get; set; }
        /// <summary>
        /// 区域唯一标识
        /// </summary>
        public string regionIndexCode { get; set; }
        /// <summary>
        /// 服务端生成的唯一标识
        /// </summary>
        public string orgIndexCode { get; set; }
        /// <summary>
        /// 服务端生成的唯一标识
        /// </summary>
        public string personId { get; set; }
    }

    public class Failure
    {
        /// <summary>
        /// 调用方指定Id
        /// </summary>
        public int clientId { get; set; }
        /// <summary>
        /// 错误码
        /// </summary>
        public string code { get; set; }
        /// <summary>
        /// 错误信息
        /// </summary>
        public string msg { get; set; }
    }

}
